
var routting = function ($stateProvider, $urlRouterProvider, $locationProvider) {
  $locationProvider.html5Mode(true)
  $stateProvider.state('/home', {
    url: '/home',
    templateUrl: '/src/templates/home.template.html',
    controller: 'homeCtrl'
  }).state('/login', {
    url: '/login',
    templateUrl: '/src/templates/login.template.html'
  })
  $urlRouterProvider.otherwise('/home')
}

export default routting